package com.qin.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qin.mall.domain.OmsOrderReturnReason;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 覃剑
* @description 针对表【oms_order_return_reason(退货原因表)】的数据库操作Service
* @createDate 2022-11-11 08:46:28
*/
public interface OmsOrderReturnReasonService extends IService<OmsOrderReturnReason> {

    /**
     * 添加订单原因
     */
    int create(OmsOrderReturnReason returnReason);

    /**
     * 修改退货原因
     */
    int update(Long id, OmsOrderReturnReason returnReason);

    /**
     * 批量删除退货原因
     */
    int delete(List<Long> ids);

    /**
     * 分页获取退货原因
     */
    Page<OmsOrderReturnReason> getlist(Integer pageNum, Integer pageSize);

    /**
     * 批量修改退货原因状态
     */
    int updateStatus(List<Long> ids, Integer status);

    /**
     * 获取单个退货原因详情信息
     */
    OmsOrderReturnReason getItem(Long id);
}
